package org.nidy.programexercise.DynamicProxyExercise;

public class BigStar implements IStar{
    public BigStar(String name, int age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    public BigStar() {
    }

    @Override
    public String toString() {
        return "BigStar{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    private String name;
    private int age;
    private String sex;
    @Override
    public String sing(String singName) {
        System.out.println(this.name+"正在演唱："+singName);
        return "Thanks";
    }

    @Override
    public void dance() {
        System.out.println(this.name+"正在跳舞");
    }
}
